/**
 * 
 */
package br.coppe.coimbra.coimbra;

import java.io.FileNotFoundException;
import java.io.IOException;
import javax.swing.JOptionPane;

import br.coppe.coimbra.document.doc.extraction.Dir;
import br.coppe.coimbra.gui.Directory;

/**
 * @author phillipe
 *
 */
public class Main {
    
	/**
	 * @param args
	 * @throws IOException 
	 * @throws FileNotFoundException 
	 */
	public static void main(String[] args) throws FileNotFoundException, IOException {
		
		JOptionPane.showMessageDialog(null, "Selecione a pasta com os textos.", "Coimbra", JOptionPane.INFORMATION_MESSAGE);

		Directory d = new Directory();
//		Dir.categorizeDir("/home/phillipe/workspace/Coimbra/base/");
//        System.out.println(f.getAbsolutePath());
		Dir dir = new Dir();
        dir.categorizeDir(d.getDirectory());
        
		JOptionPane.showMessageDialog(null, "Selecione o local para salvar o arquivo de classificação.", "Coimbra", JOptionPane.INFORMATION_MESSAGE);
		Directory d2 = new Directory();
		dir.save(d2.getDirectory());
		JOptionPane.showMessageDialog(null, "O arquivo \"classificação\" foi salvo.", "Coimbra", JOptionPane.INFORMATION_MESSAGE);

	}

}
